#!/usr/bin/env node

//9. exec 方式调用外部程序

const cp = require('child_process'),
     log = console.log;

cp.exec('cat data.txt | sort | uniq',(err,out)=>{
  log(out.toString('utf8'));
})


